package com.dingding.transfer.stamper.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

/**
 * 离线申请单 回调数据对象
 * @author zhf
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ExistApplicationRes extends BaseEntity {
	private String applicationId;//申请单ID
	private int useCount;//已用盖章次数

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		ExistApplicationRes that = (ExistApplicationRes) o;
		return useCount == that.useCount && Objects.equals(applicationId, that.applicationId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(applicationId, useCount);
	}
}